
import apiHelper from './apiHelper';

class payMentService {
	//请求 ：支付ID
	payMent(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/an/addOrder`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求 ：支付宝支付
	aliPay(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/o/p`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求 ：微信支付
	weixinPay(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/o/wxp`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求 ：微信查询
	weixinQuery(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/o/qwxp`,
			data: {
				method: 'get',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}


}
// 实例化后再导出
export default new payMentService()